<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>
        我的信息</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/4.2.2/css/swiper.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css">
    <link href="https://img.qianxiaoduan.com/element-ui/2.3.4/theme-chalk/index.css" rel="stylesheet">
    <link rel="stylesheet" href="https://page.qianxiaoduan.com/css/style-green.css">
    <script src="js/toLogin.js"></script>
</head>
<body>
<div class="Theme-header-Style1 header-container ">
    <div class="container">
        <div class="row">
            <div class="col">
                <div style="margin-top:-25px" class="logo">
                    <a href="">
                        <img src="img/logo.png" alt="">
                    </a>
                </div>
                <div style="position: absolute;top:18px;">
                    <img src="img/log1.png">
                </div>
            </div>
            <div id="login_div">
                <span onclick="toLogin()">
                    <i style="font-size: 25px" class="iconfont icon-denglu1"></i>
                </span>
                <span onclick="toRegister()" style="margin-left: 15px">
                    <i style="font-size: 25px" class="iconfont icon-zhuce"></i>
                </span>
            </div>
            <div id="exit_div" style="display: none">
                <a onclick="toEsc()" href="#" style="margin-top:20px;font-size: 20px;color: red">退出</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="myCenter.html" style="color: coral;font-size: 15px">个人中心</a>
            </div>
        </div>
    </div>
</div>
<div class="Theme-breadcrumb-trail">
    <div style="background-color:#eee;" class="Theme-pageTarget">
        <div class="container">
            <div class="row">
                <div class="col">
                    <div>
                        您的位置：
                        <a href="index.html">
                            首页
                        </a>
                        <a href="myCenter.html">
                            > 个人中心
                        </a>
                        <a href="myMessage.html">
                            > 我的信息
                        </a>
                        > 提现
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="Theme-rolling-background1 Theme-mb-list" style="margin-top: -40px">
    <div class="container">
        <div class="row">
            <div class="col">
                <div class="img wow slideInLeft animated" style="visibility: visible; animation-name: slideInLeft;">
                    <img src="https://img.qianxiaoduan.com/muban/night-1927265_640.jpg" alt="">
                </div>
                <div class="con wow slideInRight animated" style="visibility: visible; animation-name: slideInRight;">
                    <h1>
                        支付宝提现
                        <span id="noTx">
                                    / 可提金额：￥70
                </span>
                    </h1>
                    <input id="moneyT" type="text" placeholder="提现金额">
                    <a href="#" id="toTx">
                        提现
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="Theme-footer-1" style="margin-top: -100px">
    <div class="container">
        <div class="row">
            <div class="col">
                <h3>
                    未来可期有限公司
                </h3>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4">
                <p>
                    未来可期有限公司 COPYRIGHT (©) 2022
                    <br>
                    公司地址：四川省成都市武侯区
                    <br>
                    联系电话：0021-93123
                    <br>
                    邮箱：kaix.wang@dhcca.com
                </p>
            </div>
            <div class="col">
                <ul>
                    <li>
                        <a href="">
                            网站首页
                        </a>
                    </li>
                    <li>
                        <a href="">
                            招商代理加盟
                        </a>
                    </li>
                    <li>
                        <a href="">
                            产品中心
                        </a>
                    </li>
                    <li>
                        <a href="">
                            新闻百科
                        </a>
                    </li>
                </ul>
            </div>
            <div class="col">
                <ul>
                    <li>
                        招商代理
                    </li>
                    <li>
                        新闻资讯
                    </li>
                    <li>
                        关于我们
                    </li>
                    <li>
                        联系我们
                    </li>
                </ul>
            </div>
            <div class="col QR-code">
                <img src="https://img.qianxiaoduan.com/muban/QR-code.jpg" alt="">
                <p>
                    联系我们
                </p>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/Swiper/4.2.2/js/swiper.min.js"></script>
<script src="https://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>
<script src="https://page.qianxiaoduan.com/js/script.js"></script>
</body>
<script src="js/jquery.min.js"></script>
<script>
    $(function () {
        $("#noTx").text("/可提金额：￥"+sessionStorage.getItem("noTx"));
    })

    $("#toTx").click(function () {
        let allM=sessionStorage.getItem("noTx");
        let amount=$("#moneyT").val();
        let uid=sessionStorage.getItem("userid")
        if(amount>allM){
            alert("提现金额不足！");
            return;
        }
        $.ajax({
            url:"user/toMoney",
            data:{
                "amount":amount,
                "uid":uid,
            },
            success:function (res) {
                if(res=="转账成功"){
                    alert("提现成功！");
                    return window.location.href="toMyTx.html";
                }
                else
                    alert("提现失败");
                return window.location.href="myMessage.html";
            }
        })
    })
</script>
</html>